package com.web.common.basic.elasticsearch.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ElasticDocResponse<T> {
	
	@JsonProperty(value = "_index")
	private String index;
	
	@JsonProperty(value = "_id")
	private String id;
	
	@JsonProperty(value = "_version")
	private String version;
	
	@JsonProperty(value = "_seq_no")
	private String seqNo;
	
	@JsonProperty(value = "_primary_term")
	private String primaryTerm;
	
	private Boolean found;
	
	@JsonProperty(value = "_source")
	private T source;
}
